@import './var.css';
@import './FormCreate/index.scss';
@import './theme.scss';
@import 'element-plus/theme-chalk/dark/css-vars.css';

.reset-margin [class*='el-icon'] + span {
  margin-left: 2px !important;
}

// 解决抽屉弹出时，body宽度变化的问题
.el-popup-parent--hidden {
  width: 100% !important;
}

// 解决表格内容超过表格总宽度后，横向滚动条前端顶不到表格边缘的问题
.el-scrollbar__bar {
  display: flex;
  justify-content: flex-start;
}

/* nprogress 适配 element-plus 的主题色 */
#nprogress {
  & .bar {
    background-color: var(--el-color-primary) !important;
  }

  & .peg {
    box-shadow:
      0 0 10px var(--el-color-primary),
      0 0 5px var(--el-color-primary) !important;
  }

  & .spinner-icon {
    border-top-color: var(--el-color-primary);
    border-left-color: var(--el-color-primary);
  }
}

.el-table {
  // 全局表格边框设置为1px
  --el-table-border: 1px solid #d8d8d8;
  // 全局表格表头设置背景颜色
  --el-table-header-bg-color: #dfdfdf;
  // 全局表格表头设置字体颜色
  --el-table-header-text-color: #000000;
  // 全局表格设置鼠标移入行背景颜色
  --el-table-row-hover-bg-color: #e8e8e8;
}

// 全局设置X向滚动条的高度为10px
.el-scrollbar__bar.is-horizontal {
  height: 10px;
  left: 2px;
}
// 全局设置Y向滚动条的宽度为10px
.el-scrollbar__bar.is-vertical {
  top: 2px;
  width: 10px;
}

// 废旧物资处置 海量点标注弹窗样式
.materialHandleMarkerBox{
  display: flex;
  flex-direction: column;
  align-items: center;

  width: 183px;
  height: 96px;
  background-image: url('@/views/BigScreen2/imgs/boxBg12.png');
  background-repeat: no-repeat;
  background-size: 100% 100%;

  .time{
    color: #FFFFFF;
    font-size: 12px;
    font-weight: bold;
    margin-top: 16px;
    margin-bottom: 6px;
  }

  .item{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    padding-left: 14px;
    background: linear-gradient( 90deg, rgba(60,220,245,0.58) 3%, rgba(60,220,245,0) 100%);

    .text{
      color: #FFFFFF;
      font-size: 14px;
      font-weight: bold;
      margin-right: 4px;
    }
    .icon1{
      width: 18px;
      height: 12px;
      background-image: url('@/views/BigScreen2/imgs/xia.png');
      background-repeat: no-repeat;
      background-size: 100% 100%;
    }
    .icon2{
      width: 18px;
      height: 12px;
      background-image: url('@/views/BigScreen2/imgs/shang.png');
      background-repeat: no-repeat;
      background-size: 100% 100%;
    }
  }
}